package com.xhui.vimarket.zkplus.zul.attr.bean;

import java.util.List;

/**
 * ButtonTextDataVo.
 * 
 * @author wuyx
 * @version Revision 1.0.0
 * 
 */
public class ButtonTextDataVo {
    
    /**
     * valueId.
     */
    private String                  valueId;
    
    /**
     * valueName.
     */
    private String                  valueName;
    
    /**
     * valueLabel.
     */
    private String                  valueLabel;
    
    /**
     * op.
     */
    private String                  op;
    
    /**
     * reset.
     */
    private boolean                 reset = false;
    
    /**
     * Data.
     */
    private Object                  data;
    
    /**
     * resetVo.
     */
    private static ButtonTextDataVo resetVo;
    
    /**
     * DataList.
     */
    private List<Object>            dataList;
    
    /**
     * newInstance.
     * 
     * @param valueId String
     * @param valueName String
     * @return ButtonTextDataVo
     */
    public static ButtonTextDataVo newInstance(final String valueId, final String valueName) {
        final ButtonTextDataVo vo = new ButtonTextDataVo();
        vo.setValueId(valueId);
        vo.setValueName(valueName);
        return vo;
    }
    
    /**
     * getResetInstance.
     * @return ButtonTextDataVo
     */
    public static ButtonTextDataVo getResetInstance() {
        if (ButtonTextDataVo.resetVo == null) {
            ButtonTextDataVo.resetVo = new ButtonTextDataVo();
            ButtonTextDataVo.resetVo.setReset(true);
        }
        return ButtonTextDataVo.resetVo;
    }
    
    public String getValueId() {
        return this.valueId;
    }
    
    public void setValueId(final String valueId) {
        this.valueId = valueId;
    }
    
    public String getValueName() {
        return this.valueName;
    }
    
    public void setValueName(final String valueName) {
        this.valueName = valueName;
    }
    
    public String getValueLabel() {
        return this.valueLabel;
    }
    
    public void setValueLabel(final String valueLabel) {
        this.valueLabel = valueLabel;
    }
    
    public Object getData() {
        return this.data;
    }
    
    public void setData(final Object data) {
        this.data = data;
    }
    
    public List<Object> getDataList() {
        return this.dataList;
    }
    
    public void setDataList(final List<Object> dataList) {
        this.dataList = dataList;
    }
    
    public String getOp() {
        return this.op;
    }
    
    public void setOp(final String op) {
        this.op = op;
    }
    
    public boolean isReset() {
        return this.reset;
    }
    
    public void setReset(final boolean reset) {
        this.reset = reset;
    }
    
}
